package com.love.poetry.domain;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.youboy.core.domain.AbstractDomain;

/**
 * 标签词表：keywordtag
 * 
 * @author haichun
 * 
 */
public class KeywordTag extends AbstractDomain {

	private static final long serialVersionUID = 1L;

	private String name;// 标签名称 name 例如：相思
	private String path;// 标签词连接 path 例如：/tag/相思
	private int sort;// 排序 sort 例如：1（注意设置值）
	private KeywordTag father;
	private List<KeywordTag> children = new ArrayList<KeywordTag>();

	public String getName() {
		return name;
	}

	public KeywordTag setName(String name) {
		this.name = name;
		return this;
	}

	public String getPath() {
		return path;
	}

	public KeywordTag setPath(String path) {
		this.path = path;
		return this;
	}

	public int getSort() {
		return sort;
	}

	public KeywordTag setSort(int sort) {
		this.sort = sort;
		return this;
	}

	public KeywordTag getFather() {
		return father;
	}

	public KeywordTag setFather(KeywordTag father) {
		this.father = father;
		return this;
	}

	public List<KeywordTag> getChildren() {
		if (null == this.children) {
			return Collections.emptyList();
		}
		return children;
	}

	public KeywordTag setChildren(List<KeywordTag> children) {
		this.children = children;
		return this;
	}

}